/**
 *
 * @name 全局配置 上线环境
 * @description 诸如连接后台的host地址，angular的配置项等等
 * @author maikeji
 *
 */

var CONFIG = {

    apiHost: 'https://api.metalab.cn',
    html5Mode: true,
    visitorHost: 'http://www.maikeji.cn/',
    iframeUrl: 'http://7xj3ij.com1.z0.glb.clouddn.com/passport.html',

    qnuploader: {
        domain: 'http://res.maikeji.cn/',
        uptokenUrl: 'https://api.metalab.cn/qiniu/uptoken',
        //uptokenUrl: 'http://api.metalab.cn:3003/upload/token',
        maxSize: '10M'
    },

    qnuploaderImage: {
        domain: 'http://res.maikeji.cn/',
        uptokenUrl: 'https://api.metalab.cn/qiniu/uptoken',
        maxSize: '10M',
        mimeTypes: [
            {title: "Image files", extensions: "jpg,jpeg,gif,png"}
        ]
    },

    qnuploaderVideo: {
        domain: 'http://res.maikeji.cn/',
        uptokenUrl: 'https://api.metalab.cn/qiniu/uptoken',
        maxSize: '100M',
        mimeTypes: [
            {title: "Video files", extensions: "mp4"}
        ]
    },

    froalaOptions: {
        key: 'xB-13szD-8pG-7B-21B3zt==',
        toolbarbuttons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsMD: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsSM: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsXS: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        imageInsertButtons: ["imageUpload"],
        language: 'zh_cn',
        imageUploadURL: 'https://api.metalab.cn/qiniu/upload',
        heightMin: 100,
        toolbarSticky: false
    }
};
